/*******************************************************************************
SANTAK ELECTRONIC Ltd
RTOS kernel for ups ,All rights reserved
VERSION:		V00
File name:		OS_CPU.h
Description:	DEFINITION OF STRUCTURE RELATED TO CPU
Update Date:	2013/01/10
Writer:			ZD
Modifier:       whj
*******************************************************************************/
#ifndef _OSCPU_H
#define _OSCPU_H

#ifdef   OS_GLOBALS
#define  OS_EXT
#else
#define  OS_EXT  extern
#endif

/*******************************************************************************
 Basic variables type definition
 ******************************************************************************/
#define INTOS		unsigned int	     /* the smallest unit int the cpu	*/
#define OS_STK		INTOS

/*******************************************************************************
 Macro definitions
 ******************************************************************************/

//#define OS_TASK_SW()			asm("	TRAP	#31")
// 软中断改为手动操作
#define  OS_TASK_SW()         OSCtxSw()
//#define  OS_TASK_SW()       

extern void	OSCtxSw(void);
#endif
